//
//  BaiduLoaction.h
//  honglaba
//
//  Created by 红喇叭 on 2017/6/14.
//  Copyright © 2017年 红喇叭. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <BaiduMapAPI_Base/BMKBaseComponent.h>//引入base相关所有的头文件
#import <BaiduMapAPI_Map/BMKMapComponent.h>//引入地图功能所有的头文件
#import <BaiduMapAPI_Search/BMKGeocodeSearch.h>//反编码
//#import <BaiduMapAPI_Search/BMKDistrictSearch.h>
#import <BaiduMapAPI_Location/BMKLocationComponent.h>//引入定位功能所有的头文件
#import <BaiduMapAPI_Map/BMKMapView.h>//只引入所需的单个头文件

typedef void(^YYLoctionSuccess)(BMKReverseGeoCodeResult * result);
typedef void(^YYLoctionFail)(NSString * ErrCode);
@interface BaiduLoaction : NSObject<BMKLocationServiceDelegate,BMKGeoCodeSearchDelegate>
@property (nonatomic, strong) BMKLocationService *localService;
@property (nonatomic, strong) BMKGeoCodeSearch *geocodesearch;
@property (nonatomic, strong) YYLoctionSuccess success;
@property (nonatomic,strong) YYLoctionFail fail;

- (void)Start:(YYLoctionSuccess)success loctionFail:(YYLoctionFail)fail;
- (void)startLoction;
- (void)stopLoction;
//- (void)getCityInfo;
@end
